Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODShape


Outset

The Outset method modifies this shape by moving its boundary outwards--away from its interior--by the specified distance.

ODShape Outset (in ODCoordinate distance);
distance
The distance (expressed in the shape's coordinate system) to move the shape's outline.
return value
A reference to this shape after the outset operation.
DISCUSSION
This method is typically used to create a border around a shape. To do this, copy the original shape, outset the copy, then subtract the original shape from the copy.

To inset a shape (move the boundary inwards), call this method with a negative distance.

EXCEPTIONS
kODErrOutOfMemory
There is not enough memory to move the shape's boundaries. The shape is not modified.
SEE ALSO
The ODCoordinate type (page 885).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help